@extends('layouts.back_stage')
@section('content')
    <link rel="stylesheet" href="{{env('CDN_DOMAIN_NAME')}}/css/craft.css?v=1.0.1">
    <div class="container">
        <div class="craft-btn">
            <h3 style="float:left;">业务参数</h3>
            <a class="btn-a" href="javascript:;" style="background:#27c24c;">工艺名称</a>
            <a class="btn-a" href="/admin/saleSeason">销售季节</a>
            <a class="btn-a" href="/admin/sizeSetting">尺码组设置</a>
            <a class="btn-a" href="/admin/Operation">品牌设置</a>
        </div>
        <ul class="craft-ul">
            {{--工艺名称--}}
            <li id="trademark" class="craft-li" style="display:block;">
                <div class="craft-choose">
                    <span>共<span class="in_count info_sum">{{$infos_count}}</span>条信息</span>
                    <a class="btn bt_a btn-primary" href="javascript:;" onclick="addCraft()">添加</a>
                </div>
                <div class="craft_tab">
                    <table class="craft" border="1" cellspacing="0" cellpadding="0">
                        <tr></td><td>工艺名称</td><td>操作</td></tr>
                        @foreach($craft_infos as $k=>$v)
                        <tr class="Amd_{{ $v->id }}">
                            <td class='craft-name'>{{ $v->craft_name }}</td>
                            <td style="width:150px;">
                                <a href="javascript:;" onclick="amendCraft({{ $v->id }})">修改</a>
                                <a href="javascript:;" onclick="delCraft({{ $v->id }})">删除</a>
                            </td>
                        </tr>
                        @endforeach
                    </table>
                    <span style="float:right;"><div style="float: right;margin:20px 0;">
                <button class="btn btn-info" onclick="returnPage()" style="float:right;">跳转</button>
                <input type="text" class="form-control returnPage" style="width:6rem;float: right;margin:0 5px;">
            </div>{{$craft_infos->links()}}</span>
                </div>
            </li>
        </ul>
    </div>
    {{--遮罩层--}}
    <div class="mask" style="display:none;"></div>
    {{--工艺名称弹框--}}
    <div class="adorn" style="display:none;">
        <div class="adorn_header">
            <span>添加信息</span>
            <button class="shutClose shut">×</button>
        </div>
        <div class="adorn_center">
            <input class="adorn_inp inp1" maxlength="8" type="text" autocomplete="off" autocorrect="off" placeholder="工艺名称(必)" />
        </div>
        <div class="adorn_bottom">
            <button class="adorn_btn">确定</button>
        </div>
    </div>
    <script src="{{env('CDN_DOMAIN_NAME')}}/js/craft.js?v=1.0.2"></script>
@endsection